package cn.xej.health.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xej
 * 菜单
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("HEALTH.TB_MENU")
public class Menu {

    @TableId(type = IdType.AUTO)
    private Integer menuid;

    private String iconCls;

    private String text;

    private String url;

    private Integer pid;

    @TableField(exist = false)
    private List<Menu> children;
}
